from django.contrib import admin
# from django.contrib.admin import ModelAdmin, register
from .models import addAwardInformation,addTeamMembers

#需要你去进一步的去将其细化一下，到时候就更加的方便了

admin.site.register(addAwardInformation)

admin.site.register(addTeamMembers)
# @admin.register(addTeamMembers)
# class addTeamMembers(admin.ModelAdmin):
#     # ordering = ('prize_time',)
#     fieldsets = (
#         ("项目人员", {'fields': ['project_name','project_head','group_members']}),
#         ("获奖以及总结", {'fields': ['prize_name', 'prize_level', 'prize_time']}),
#         # ("项目概述",{'fields':['project_overview']})
#     )

#     list_display = ('project_name', 'project_head', 'prize_level', 'prize_time')

# @admin.register(addTeamMembers)
# class AboutAdmin(admin.ModelAdmin):
    # ordering = ('id',)
    # fieldsets = (
    #     ("类型", {'fields': ['type']}),
    #     ("内容", {'fields': ['title', 'content', 'url', 'dates']}),
    # )
    # list_display = ('project_name', 'project_head', 'prize_level', 'prize_time')